package br.ufrj.dcc.smarthotel.controls;

import br.ufrj.dcc.smarthotel.entities.Session;

public class LoggedUserSession {
	private Session session;
	private static LoggedUserSession instance;
	
	private LoggedUserSession() {
		//avoid object creation
	}
	
	public static LoggedUserSession getInstance() {
		if (instance == null) {
			instance = new LoggedUserSession();
		}
		
		return instance;
	}

	public Session getSession() {
		return session;
	}

	public void setSession(Session session) {
		this.session = session;
	}
}
